﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="IFrameDialog.aspx.cs" Inherits="SCS.Web.UI.WebControls.Dialogs.Test.IFrameDialog" %>
<%@ Register assembly="SCS.Web.UI.WebControls.Dialogs" namespace="SCS.Web.UI.WebControls.Dialogs" tagprefix="cc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="act" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<h2>IFrame Dialog</h2>

    <p>
        The IFrame Dialog inherits all the functionality of the Dialog Control and renders an IFrame for seamlessly displaying content from another page, 
        or page from another Web Site. As with the Templated Dialog, it allows you to quickly create a dialog to suit your needs without subclassing the Dialog Control.
    </p>

    <p>
        For a live example of a dialog created with the IFrame Dialog click <asp:LinkButton ID="launchDialogButton" runat="server" Text="here" />. 
        This example shows the IFrame Dialog with its body content loaded from another page.
        The full markup for creating this dialog is shown below.
    </p>
    
    <div class="code-box">
    <pre>
    &lt;cc1:IFrameDialog ID=&quot;Dialog1&quot; runat=&quot;server&quot;        
      CssClass=&quot;dialog dialogSample&quot;
      BackgroundCssClass=&quot;modalBackground&quot;         
      Title=&quot;IFrame Dialog Example&quot;        
      TargetControlId=&quot;launchDialogButton&quot;              
      ShowTitlebarCloseButton=&quot;true&quot;
      ShowCloseButton=&quot;true&quot; 
      ShowOkButton=&quot;false&quot;
      FrameUrl=&quot;IFrameExampleContent.htm&quot;
      LoadOnInit=&quot;true&quot; /&gt;    
    </pre>
    <div class="caption">IFrame Dialog Example Markup</div>
    </div>

    <cc1:IFrameDialog ID="Dialog1" runat="server"        
        CssClass="dialog dialogSample"
        BackgroundCssClass="modalBackground"         
        Title="IFrame Dialog Example"        
        TargetControlId="launchDialogButton"              
        ShowTitlebarCloseButton="true"
        ShowCloseButton="true" 
        ShowOkButton="false"
        FrameUrl="IFrameExampleContent.htm"
        LoadOnInit="true" />
</asp:Content>
